<?php 
session_start();
if (!isset($_SESSION['name'])) {
    header("location:/public/denglu.php");}

include_once($_SERVER['DOCUMENT_ROOT'].'/public/func.php');
$config=include_once($_SERVER['DOCUMENT_ROOT'].'/public/config.php');
$sum=3;
$p=isset($_GET['p'])&&!empty($_GET['p'])?$_GET['p']:1;
$off=($p-1)*3; 
// $root=sel($config,'users','where name='.$_SESSION['name']);   
 ?>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="/public/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/public/css/main.css"/>
    <script type="text/javascript" src="/public/js/libs/modernizr.min.js"></script> 
    <script type="text/javascript" charset="utf-8" src="/public/baidubianjiqi/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/public/baidubianjiqi/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="/public/baidubianjiqi/lang/zh-cn/zh-cn.js"></script>
</head>
<body class="container">
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
         
            <ul class="navbar-list clearfix">
                <li><a class="on" href="/admin/index.php">首页</a></li>
                <li><a href="/home/index.php" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li>欢迎会员: <?php echo isset($_SESSION['name'])$_SESSION['name']:'' ?></li>
                
                <li><a href="/public/zhuche.php">注册</a></li>
                <li><a href="/public/zhuxiao.php">注销</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                       
                        <li><a href="/admin/article/index.php"><i class="icon-font">&#xe005;</i>文章管理</a></li>
                        <li><a href="/admin/category/index.php"><i class="icon-font">&#xe006;</i>分类管理</a></li>
                        <li><a href="/admin/message/index.php"><i class="icon-font">&#xe004;</i>留言管理</a></li>
                        <li><a href="/admin/reply/index.php"><i class="icon-font">&#xe012;</i>评论管理</a></li>
                        <li><a href="/admin/users/index.php"><i class="icon-font">&#xe052;</i>会员管理</a></li>
                        <li><a href="design.html"><i class="icon-font">&#xe033;</i>广告管理</a></li>
                    </ul>
                </li>
                
            </ul>
        </div>
    </div>
    <!--/sidebar-->
    <div class="main-wrap">
        
    <!--/main-->
